﻿function numpad(number, textboxID)
{
    var val = "";
    var currentVal = $('#' + textboxID).val();
    if (number == "back")
    {
        val = currentVal.substring(0, currentVal.length - 1);
    }
    else
    {
        val = currentVal + number;
    }
    $('#' + textboxID).val(val);
}

function setLanguage(language)
{
    $.post("/debioscoop/touchscreen/ajax/language.aspx", { language: language },
    function (data) {
        location.reload();
    });
}

function checkTimes(divID)
{

}

$(function () {
    $("#timeChoices").buttonset();
    $("#main_glasses").counter({
        minVal: 0,
        maxVal: 10,
        singleName: 'bril',
        defaultName: 'brillen'
    });
});